<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="plugs/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="plugs/boxy/jquery.boxy.js"></script>
	<link rel="stylesheet" href="css/common.css" type="text/css" />
	<link rel="stylesheet" href="css/boxy.css" type="text/css" />
	<script type="text/javascript" >   
		function changeCode(){     
			$("#J_codeimg").attr("src", "js/code.jsp?"+(new Date()).getTime());
		}
		    
		$(function(){
			Boxy.DEFAULTS.title = "标题";
			$("#test").click(function() {
				  new Boxy("<div>测试内容</div>", {
					afterHide: function() {
					  alert("隐藏后回调");
					}
				  });
				  return false;
			  });
		});
	</script>
  </head> 
             
  <body>
    <img src="js/code.jsp" id="J_codeimg"  width="70" height="34" style="vertical-align:middle;">
            <a class="c333" href="javascript:changeCode()">换一张</a><br>

	<button id="test" value="测试">测试</button>    
  </body>
</html>
